// 2013-9-12上午02:20:25  net.betou.trade.main.dao.agency.AgencyDao.java

package net.betou.trade.main.dao.agencyorproxy;

import java.util.List;

import net.betou.trade.entity.main.AgentAndAdmins;


/**
 * 
 * @author 叶装装
 */
public interface AgencyDao extends Dao{
	
	public AgentAndAdmins findAgency( Integer id );
	
	public AgentAndAdmins findBySelf( Integer selfId, Integer id );
	
	public List< AgentAndAdmins > findAgencyList(  Integer parentId, Boolean isTop);
	
	public List< AgentAndAdmins > findAccountList( Integer parentId, Boolean isTop );
	
	public List< AgentAndAdmins > findListByAdminAndRecomment(AgentAndAdmins aaa, boolean agencyOrProxy );
}
